﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Areas.Administrator.Models.Student>" %>
<%@ Import Namespace="CollegeWebsite.Areas.Administrator.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>
 <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            
            <%--<div class="editor-label">
                <%= Html.LabelFor(model => model.StudentID) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentID) %>
                <%= Html.ValidationMessageFor(model => model.StudentID) %>
            </div>--%>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentName) %>
                <%= Html.ValidationMessageFor(model => model.StudentName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FatherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FatherName) %>
                <%= Html.ValidationMessageFor(model => model.FatherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.MotherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.MotherName) %>
                <%= Html.ValidationMessageFor(model => model.MotherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.DateOfBirth) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateOfBirth, String.Format("{0:g}", Model.DateOfBirth)) %>
                <%= Html.ValidationMessageFor(model => model.DateOfBirth) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Gender) %>
            </div>
            <div class="editor-field">
                <%= Html.RadioButtonFor(model => model.Gender,true) %>Male
                <%= Html.RadioButtonFor(model => model.Gender,false) %>Female
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
            
            <%--<div class="editor-label">
                <%= Html.LabelFor(model => model.AdmissionID) %>
            </div>--%>
            <div class="editor-field">
            <%--    <%= Html.DropDownListFor(model => model.Admission.Course.CourseID, new SelectList((List<Course>)ViewData["Course"],"CourseID","CourseName"))%>
                <%= Html.ValidationMessageFor(model => model.Admission.Course.CourseID) %>--%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.SupportDetails) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SupportDetails) %>
                <%= Html.ValidationMessageFor(model => model.SupportDetails) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.CheckBoxFor(model => model.Status) %>
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%= Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

